space separated dictionary input in python

33

d = {}
for i, v in enumerate(input().split()):
    d[i] = v

Comments

Submit
0 Comments